/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="PACOTESDETALHES")
public class PacotesDetalhesProteu implements Serializable{

    @Id
    @Column(name="PCT_ST_CODIGO")
    private String pctStCodigo;
    @Id
    @Column(name="CON_ST_CODIGO")
    private String conStCodigo;
    @Id
    @Column(name="CON_ST_PLA_CODIGO")
    private String conStPlaCodigo;
    @Id
    @Column(name="PROC_ST_CODIGO_AMB")
    private String procStCodigoAmb;


    public String getConStCodigo() {
        return conStCodigo;
    }

    public void setConStCodigo(String conStCodigo) {
        this.conStCodigo = conStCodigo;
    }

    public String getConStPlaCodigo() {
        return conStPlaCodigo;
    }

    public void setConStPlaCodigo(String conStPlaCodigo) {
        this.conStPlaCodigo = conStPlaCodigo;
    }

    public String getPctStCodigo() {
        return pctStCodigo;
    }

    public void setPctStCodigo(String pctStCodigo) {
        this.pctStCodigo = pctStCodigo;
    }

    public String getProcStCodigoAmb() {
        return procStCodigoAmb;
    }

    public void setProcStCodigoAmb(String procStCodigoAmb) {
        this.procStCodigoAmb = procStCodigoAmb;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PacotesDetalhesProteu other = (PacotesDetalhesProteu) obj;
        if ((this.pctStCodigo == null) ? (other.pctStCodigo != null) : !this.pctStCodigo.equals(other.pctStCodigo)) {
            return false;
        }
        if ((this.conStCodigo == null) ? (other.conStCodigo != null) : !this.conStCodigo.equals(other.conStCodigo)) {
            return false;
        }
        if ((this.conStPlaCodigo == null) ? (other.conStPlaCodigo != null) : !this.conStPlaCodigo.equals(other.conStPlaCodigo)) {
            return false;
        }
        if ((this.procStCodigoAmb == null) ? (other.procStCodigoAmb != null) : !this.procStCodigoAmb.equals(other.procStCodigoAmb)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 41 * hash + (this.pctStCodigo != null ? this.pctStCodigo.hashCode() : 0);
        hash = 41 * hash + (this.conStCodigo != null ? this.conStCodigo.hashCode() : 0);
        hash = 41 * hash + (this.conStPlaCodigo != null ? this.conStPlaCodigo.hashCode() : 0);
        hash = 41 * hash + (this.procStCodigoAmb != null ? this.procStCodigoAmb.hashCode() : 0);
        return hash;
    }



}
